import { defineConfig } from 'vitepress'
import sidebar from "./sidebar";
import nav from "./nav";
import otherConfig from "./other-config";
import socialLinks from "./social-links";

export default defineConfig({
  title: "WangMT",
  description: "王馒头的学习记录",
  head: [
    ['link', { rel: 'icon', href: '/notes/favicon.ico' }],
    ['meta', { name: 'baidu-site-verification', content: 'codeva-OrhAA6YK1e' }]
  ],
  base: '/notes/',
  sitemap: {
    hostname: 'https://wlshow.space/notes/'
  },
  themeConfig: {
    logo: '/favicon.ico',
    nav,
    sidebar,
    socialLinks,
    outline: {
      level: [2, 3],
      label: '文章目录'
    },
    // https://vitepress.dev/reference/default-theme-config

    footer: {
      copyright: `版权所有 © 2024-${new Date().getFullYear()} WangMT`,
      message: `
        <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37172302372082">鲁公网安备37172302372082号</a>
        &nbsp;&nbsp;<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37172302372082">鲁ICP备2023015175号-1</a>
      `,
    },
  },
  ...otherConfig
})
// https://vitepress.dev/reference/site-config
